package com.hejjon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hejjon.core.domain.entity.FeaturePublishRecord;
import com.hejjon.domain.dto.FeaturePublishInfoDTO;
import com.hejjon.domain.vo.FeaturePublishDetailVO;
import com.hejjon.domain.vo.FeaturePublishRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeaturePublishRecordMapper extends BaseMapper<FeaturePublishRecord> {

    /**
     * 查询特征发布列表
     */
    List<FeaturePublishRecordVO> selectFeaturePublishInfo(FeaturePublishInfoDTO infoDTO);


    /**
     * 查特征发布详情
     */
    FeaturePublishDetailVO selectFeaturePublishDetail(@Param("recordId") String recordId);

    /**
     * 更新发布状态
     */
    int updatePublishStatus(@Param("recordId") String recordId, @Param("status") String status);



    /**
     * 根据主键查询是否存在
     */
    int existById(@Param("recordId") String recordId);




}
